package net.huashitong.ssydt.article.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.article.entity.SsArticleArticle;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章列表
 *
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.14
 */
public class   ArticleListOutVO implements Serializable {

    private static final long serialVersionUID = -3964123076702408464L;
    @ApiModelProperty("文章id")
    private Long id;//文章id
    @ApiModelProperty("标题")
    private String title;//标题
    @ApiModelProperty("文章分类id")
    private Long articleTypeId;//文章分类id
    @ApiModelProperty("分类名称")
    private String typeName;//分类名称
    @ApiModelProperty("图片URL")
    private String imageUrl;//图片URL
    @ApiModelProperty("摘要")
    private String outline;//摘要
    @ApiModelProperty("所属日期")
    private String belongDate;//所属日期
    @ApiModelProperty("点击数")
    private Integer clickNumber;//点击数
    @ApiModelProperty("点赞数")
    private Integer praiseNumber;//点赞数
    @ApiModelProperty("评论数")
    private Integer commentNumber;//评论数
    @ApiModelProperty("创建时间")
    private Date gmtCreate;//创建时间

    public ArticleListOutVO(SsArticleArticle ssArticleArticle, String typeName) {
        this.title = ssArticleArticle.getTitle();
        this.imageUrl = ssArticleArticle.getImageUrl();
        this.outline = ssArticleArticle.getOutline();
        this.belongDate = ssArticleArticle.getBelongDate();
        this.clickNumber = ssArticleArticle.getClickNumber();
        this.praiseNumber = ssArticleArticle.getPraiseNumber();
        this.commentNumber = ssArticleArticle.getCommentNumber();
        this.gmtCreate = ssArticleArticle.getGmtCreate();
        this.typeName = typeName;
        this.id = ssArticleArticle.getId();
        this.articleTypeId = ssArticleArticle.getArticleTypeId();
    }

    public ArticleListOutVO() {

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getArticleTypeId() {
        return articleTypeId;
    }

    public void setArticleTypeId(Long articleTypeId) {
        this.articleTypeId = articleTypeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getOutline() {
        return outline;
    }

    public void setOutline(String outline) {
        this.outline = outline;
    }

    public String getBelongDate() {
        return belongDate;
    }

    public void setBelongDate(String belongDate) {
        this.belongDate = belongDate;
    }

    public Integer getClickNumber() {
        return clickNumber;
    }

    public void setClickNumber(Integer clickNumber) {
        this.clickNumber = clickNumber;
    }

    public Integer getPraiseNumber() {
        return praiseNumber;
    }

    public void setPraiseNumber(Integer praiseNumber) {
        this.praiseNumber = praiseNumber;
    }

    public Integer getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(Integer commentNumber) {
        this.commentNumber = commentNumber;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }


}
